package com.triones.yjj.service;

import com.triones.yjj.entity.MemberActivityRelateDO;

/**
 * 客户活动关联 service 接口
 *
 * @Author: triones
 */
public interface MemberActivityRelateService {

    /**
     * 创建客户活动关联
     * @param memberId
     * @param activityId
     * @return
     */
     Boolean createMemberActivityRelate(Long memberId, Long activityId);

    /**
     * 更新最新订单
     * @param memberId
     * @param activityId
     * @return
     */
    Boolean updateMemberActivityOrderId(Long memberId,Long activityId,Long orderId);

    /**
     * 条件获取
     * @param memberId
     * @param activityId
     * @return
     */
    MemberActivityRelateDO selectOne(Long memberId,Long activityId);

    /**
     * 更新累计邀请人数
     * @param scene 场景（浏览：browse、订单支付：orderPay）
     * @param memberId
     * @param activityId
     * @return
     */
    Boolean updateMemberActivityInviteTotal(String scene,Long memberId,Long activityId,Long shareId);
}
